package com.cnhis.cloudhealth.clinical.hosdoctor.doctororder.dao;

import com.cnhis.cloudhealth.commons.Mappers.ModelVo;
import com.cnhis.cloudhealth.commons.dao.BaseDao;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by xiezhenyuan on 2016/3/24.
 */
@Repository
public class DoctororderDao extends BaseDao {

    public Long getLongValue(ModelVo mo){
        Long result = 0l;
        if(mo.getList()!=null&&mo.getList().size()>0){
            List<?> list = mo.getList();
            for(Object m:list){
                Map<String,Object> ss = (Map<String,Object>)m;
                String ll = (String)ss.get("BIG01");
                if(StringUtils.isNotBlank(ll)){
                    result = Long.valueOf(ll);
                }
            }
        }
        return result;
    }
}
